package com.example.homegroup.seckill.viewmodel;

import com.alibaba.android.arouter.launcher.ARouter;
import com.example.homegroup.seckill.data.entity.SecKillEntity;
import com.example.homegroup.seckill.model.SecKillModel;
import com.example.mvvmcommon.mvvm.viewmodel.BaseViewModel;
import com.example.networkmoudel.entity.BaseEntity;


public class SeckollValuesViewModel extends BaseViewModel<SecKillModel> {
    public SecKillEntity.Value value;

    @Override
    protected void initData() {

    }

    @Override
    protected SecKillModel createModel() {
        return new SecKillModel();
    }

    @Override
    protected void sucessFull(BaseEntity entity) {

    }

    public void toCar(){
        ARouter.getInstance().build("/main/car").navigation();
        getUiChangeLiveData().setFinishActivity("assd");
    }

    public void toBack(){
        getUiChangeLiveData().setFinishActivity(""+System.currentTimeMillis());
    }
}
